#include "thread_pool.h"
#include "user.h"
extern ListNode * userList;

void quitCommand(task_t * task){
    //将peerfd对应的user删除
    ListNode * p  =userList;
    while(p){
        if(p->val->peerfd == task->peerfd ){
            user_info * user = p->val;
            deleteNode(&userList,(user_info*)user);
            break;
        }else{
            p = p->next;
        }
    }
}
